import React, { Component } from 'react'
import "./less/Goback.less"
import {withRouter} from 'react-router-dom'

class Goback extends Component {
    render() {
        return (
            <div className="goback" onClick={this.gobackFn.bind(this)}>
                返回上一页
            </div>
        )
    }
    gobackFn() {
        this.props.history.go(-1);
    }
}

export default withRouter(Goback);
